package com.exam.system.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("题目以及题目选项封装类")
public class QuestionAndOptionDTO {
    @ApiModelProperty("题目下的所有选项")
    private List<QuestionOption> options;
    @ApiModelProperty("题目题干")
    private String question;
    @ApiModelProperty("正确答案id，记录了正确答案选项的id，用于单选题")
    private Integer rightAnswerId;
    @ApiModelProperty("题目解析")
    private String analysis;
    @ApiModelProperty("题目标签")
    private List<String>  tags;
    @ApiModelProperty("正确答案集合，正确了多个正确答案选项的id，用于多选题")
    private List<Integer> rightAnswerIds;
    @ApiModelProperty("题目类型")
    private String type;
}
